package com.xuelang.pipeline.infrastructure.resource.converter;

import com.xuelang.pipeline.domain.resource.CloudEnvironment;
import com.xuelang.pipeline.infrastructure.resource.dataobject.CloudEnvironmentDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 多云环境实体与多云环境DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface CloudEnvironmentToCloudEnvironmentDOConverter {

    CloudEnvironmentToCloudEnvironmentDOConverter INSTANCE = Mappers.getMapper(CloudEnvironmentToCloudEnvironmentDOConverter.class);

    /**
     * CloudEnvironment转化为CloudEnvironmentDO
     * @param cloudEnvironment
     * @return
     */
    CloudEnvironmentDO cloudEnvironmentToCloudEnvironmentDO(CloudEnvironment cloudEnvironment);

    /**
     * CloudEnvironmentDO转化为CloudEnvironment
     * @param cloudEnvironmentDO
     * @return
     */
    CloudEnvironment cloudEnvironmentDOToCloudEnvironment(CloudEnvironmentDO cloudEnvironmentDO);

}
